//
//  MaintabController.m
//  FloatClouds
//
//  Created by 黄威 on 16/8/26.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "MaintabController.h"
#import "CenterViewController.h"
#import "BaseNavigationController.h"
#import "FamousCigaretteViewController.h"
#import "CigarettelLibaryViewController.h"
#import "ScanViewController.h"
#import "BaseNavigationController.h"
#import "VideoController.h"
@implementation MaintabController

-(void)viewDidLoad{


#pragma mark - 创建CenterViewController
    
    CenterViewController *centerViewController = [[CenterViewController alloc]init];
    
    BaseNavigationController *centerNavigationController = [[BaseNavigationController alloc]initWithRootViewController:centerViewController];
    
    centerNavigationController.tabBarItem.image = [[UIImage imageNamed:@"个人中心灰"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    centerNavigationController.tabBarItem.selectedImage = [[UIImage imageNamed:@"个人中心蓝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    centerNavigationController.tabBarItem.title = @"个人中心";
    
    
    
#pragma mark - 创建FamousCigaretteViewController
    
    FamousCigaretteViewController *famousCigaretteViewController = [[FamousCigaretteViewController alloc]init];
    
    BaseNavigationController *famousCigaretteNavigationgViewController = [[BaseNavigationController alloc]initWithRootViewController:famousCigaretteViewController];
    famousCigaretteViewController.tabBarItem.image = [[UIImage imageNamed:@"名烟灰"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    famousCigaretteViewController.tabBarItem.selectedImage = [[UIImage imageNamed:@"名烟蓝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    famousCigaretteViewController.tabBarItem.title = @"名烟";
    
    
    
    
#pragma mark - 创建CigarettelLibaryViewController
    
    CigarettelLibaryViewController *cigarettelLibaryController = [[CigarettelLibaryViewController alloc]init];
    
    BaseNavigationController *cigarettelLibaryNavigationViewController = [[BaseNavigationController alloc]initWithRootViewController:cigarettelLibaryController];
    
    cigarettelLibaryController.tabBarItem.image = [[UIImage imageNamed:@"烟库灰"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    cigarettelLibaryController.tabBarItem.selectedImage = [[UIImage imageNamed:@"烟库蓝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    cigarettelLibaryController.tabBarItem.title = @"烟库";
    
    
    
#pragma mark - 创建ScanViewController
    
    ScanViewController *scanViewController = [[ScanViewController alloc]init];
    
    BaseNavigationController *scanViewNavigationController = [[BaseNavigationController alloc]initWithRootViewController:scanViewController];
    
    scanViewController.tabBarItem.image = [[UIImage imageNamed:@"扫一扫灰"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    scanViewController.tabBarItem.selectedImage = [[UIImage imageNamed:@"扫一扫蓝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    scanViewController.tabBarItem.title = @"扫一扫";
    
    
#pragma mark - 创建VideoViewController
    
    VideoController *videoViewController = [[VideoController alloc]init];
    
    BaseNavigationController *videoNavigationController = [[BaseNavigationController alloc]initWithRootViewController:videoViewController];
    
    videoViewController.tabBarItem.image = [[UIImage imageNamed:@"视频灰"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    videoViewController.tabBarItem.selectedImage = [[UIImage imageNamed:@"视频蓝"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    videoViewController.tabBarItem.title = @"视频";
    
  self.viewControllers = @[famousCigaretteNavigationgViewController,cigarettelLibaryNavigationViewController,scanViewNavigationController,videoNavigationController,centerNavigationController];
 
    
    

}




@end
